/**
 * Copyright (c) 2009-2011, chunquedong(YangJiandong)
 * 
 * This file is part of ChunMap project
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
 * 
 * History:
 *     2010-05-05  Jed Young  Creation
 */
package chunmap.model.geom;

import chunmap.model.coord.PrecisionModel;
import chunmap.model.coord.Transform;
import chunmap.model.elem.Envelope;

/**
 * 几何体
 * 
 * @author chunquedong
 * 
 */
public interface Geometry {
	/**
	 * 获取几何体的边框
	 * 
	 * @return
	 */
	public Envelope getEnvelop();

	/**
	 * 检查有效性
	 * 
	 * @return
	 */
	public boolean isValid();

	/**
	 * 几何体类型
	 * 
	 * @return
	 */
	public GeometryType getGeometryType();

	/**
	 * 边界
	 * 
	 * @return
	 */
	public Geometry getBoundary();


	/**
	 * 使用给定的变换，转换为新的坐标
	 * 
	 * @param transf
	 * @return
	 */
	public Geometry transform(Transform transf);

	/**
	 * 精度
	 * 
	 * @return
	 */
	public PrecisionModel getPrecision();

	
	public boolean equals(Object obj);
	public String toString();
}